//
//  MenuItem.m
//  AnimationDemo
//
//  Created by iMuse on 15-7-8.
//  Copyright (c) 2015年 mySelf. All rights reserved.
//

#import "MenuItem.h"

@implementation MenuItem


- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}
-(void)initView
{
    
    self.layer.borderWidth = 1;
    self.layer.borderColor = [UIColor whiteColor].CGColor;
    
    self.label = [[UILabel alloc] initWithFrame:self.bounds];
    
    self.label .layer.cornerRadius = self.frame.size.width/2;
    self.label .textColor = [UIColor whiteColor];
    self.label .textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.label ];
}

-(void)setLabelValue:(NSString*) text
{
    self.label.text = text;
}


@end
